package ${entity.serviceImplPackage};

import ${entity.entityPackage}.${entity.className?cap_first};
import ${entity.mapperPackage}.${entity.className?cap_first}Mapper;
import ${entity.servicePackage}.${entity.className?cap_first}Service;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.beans.factory.annotation.Autowired;
import per.ethan.cloud.common.mapper.BaseMapper;
import org.springframework.stereotype.Service;
import per.ethan.cloud.common.mapper.BaseMapper;
import per.ethan.cloud.common.service.impl.BaseServiceImpl;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;

/**
* @author ${entity.authorName!}
* @date ${.now?string["yyyy/MM/dd hh:mm"]}
*/
@Slf4j
@Service("${entity.className}Service")
@RequiredArgsConstructor(onConstructor_ = @Autowired)
public class ${entity.className?cap_first}ServiceImpl extends BaseServiceImpl<${entity.className?cap_first}> implements ${entity.className?cap_first}Service {

    @Qualifier("${entity.className}Mapper")
    private final ${entity.className?cap_first}Mapper ${entity.className}Mapper;

    @Override
    public BaseMapper<${entity.className?cap_first}> getBaseMapper() {
        return ${entity.className}Mapper;
    }

}
